from django.db import models

# Create your models here.
class yhxx(models.Model):
    phone_no = models.CharField(max_length=11)
    main_prod_name = models.CharField(max_length=200)
    gprs_fee_name = models.CharField(max_length=200)
    bd = models.CharField(max_length=200)
    arpu = models.CharField(max_length=100)
    dou = models.CharField(max_length=100)
    JF = models.CharField(max_length=100)
    acc_nbr = models.CharField(max_length=100)
    hjh = models.CharField(max_length=100)
    grp = models.CharField(max_length=100)
    prod_name = models.CharField(max_length=100)
    outcall_flag = models.IntegerField(max_length=1)
    outcall_answered = models.CharField(max_length=16)
    outcall_result = models.CharField(max_length=16)
    outcall_agent = models.CharField(max_length=16)
    recommand_prod_id = models.CharField(max_length=1024)
    last_outcall_time = models.DateTimeField()

class agent(models.Model):
    username = models.CharField(max_length=128)
    password = models.CharField(max_length=512)
    province = models.CharField(max_length=4)
    city = models.CharField(max_length=4)
    county = models.CharField(max_length=4)
    district = models.CharField(max_length=128)
    is_active = models.IntegerField(max_length=1)
    tmp_code = models.CharField(max_length=8)
    star = models.IntegerField(max_length=1)

